package org.asiainfo.system.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;

import org.asiainfo.common.mybatis.stream.core.domain.BaseEntity;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;

/**
 * 系统授权表(SysClient)实体类
 *
 * @author dotor-ww
 * @since 2024-01-15 21:17:43
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table("sys_client")
public class SysClient extends BaseEntity {

    /**
     * 客户端id
     */
    @Id
    @Column(value = "client_id")
    private String clientId;
    /**
     * 客户端key
     */
    @Column(value = "client_key")
    private String clientKey;
    /**
     * 客户端秘钥
     */
    @Column(value = "client_secret")
    private String clientSecret;
    /**
     * 授权类型
     */
    @Column(value = "grant_type")
    private String grantType;
    /**
     * 设备类型
     */
    @Column(value = "device_type")
    private String deviceType;
    /**
     * token活跃超时时间
     */
    @Column(value = "active_timeout")
    private Integer activeTimeout;
    /**
     * token固定超时
     */
    @Column(value = "timeout")
    private Integer timeout;
    /**
     * 刷新token固定超时
     */
    @Column(value = "refresh_timeout")
    private Integer refreshTimeout;
    /**
     * 状态（0正常 1停用）
     */
    @Column(value = "status")
    private String status;
    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @Column(value = "del_flag")
    private String delFlag;
}

